package com.wyc.price.feign;

import com.wyc.internalCommon.request.DirectionDTO;
import com.wyc.internalCommon.request.ForecastPriceDTO;
import com.wyc.internalCommon.result.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("service-map")
public interface ServiceMapFeignClient {

    /**
     * 根据起点/终点经纬度获取距离和时长
     * @param forecastPriceDTO
     * @return
     */
    @PostMapping("/direction/driving")
    ApiResult<DirectionDTO> driving(@RequestBody ForecastPriceDTO forecastPriceDTO);

}
